package com.ttsx.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ttsx.core.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 退款表
 *
 * @author lucky
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Refund extends BaseEntity {

    /**
     * 退款单号
     */
    private String refundNo;

    /**
     * 支付单号
     */
    private String payNo;

    /**
     * 交易单号
     */
    private String tradeNo;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 退款原因
     */
    private String refundReason;

    /**
     * 退款状态
     */
    private Integer refundStatus;

    /**
     * 退款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime refundTime;

}